package pers.xiaojun.boot;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.config.annotation.web.servlet.configuration.WebMvcSecurityConfiguration;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.web.filter.DelegatingFilterProxy;

/**
 * 启动入口
 *
 * @author xiaojun
 * @since 2025-10-02
 */
@SpringBootApplication(scanBasePackages = "pers.xiaojun.boot")
public class XiaoJunApplication{

    public static void main(String[] args) {
        ConfigurableApplicationContext ac = SpringApplication.run(XiaoJunApplication.class);
        for (String beanDefinitionName : ac.getBeanDefinitionNames()) {
            System.out.println(beanDefinitionName);
        }
//        SecurityFilterChain filterChain = ac.getBean("filterChain", SecurityFilterChain.class);
//        filterChain.getFilters().forEach(System.out::println);

    }
}
